package com.miniprogram.api.controller;

import com.miniprogram.bean.po.CustomerUser;
import com.miniprogram.api.utils.ShiroUtils;


public abstract class AbstractController {

    protected CustomerUser getUser() {
        return ShiroUtils.getUserEntity();
    }

    protected Integer getUserId() {
        return getUser().getId();
    }

    protected Integer getStoreId() {
        return getUser().getStoreId();
    }

    protected String getOpenId() {
        return getUser().getOpenId();
    }
}
